home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 11 / Cream of the Crop 11-2.iso / extra / helpful.zip / news < prev    next >
Text File  |  1995-08-21  |  31KB  |  825 lines

  1.   The Linux News HOWTO
  2.   Vince Skahan, <vince@halcyon.com>
  3.   v1.15, 31 March 1995
  4.  
  5.   This document describes the setup and care+feeding of USENET News
  6.   under Linux.  You need to read this if you plan to post or read USENET
  7.   news either locally on your site or between your site and other sites.
  8.   You probably do *not* need to read this document if don't plan to pro-
  9.   vide USENET news as a feature of your system.
  10.  
  11.   1.  Introduction
  12.  
  13.   The intent of this document is to answer some of the questions and
  14.   comments that appear to meet the definition of "frequently asked
  15.   questions" about USENET News software under Linux in general, and the
  16.   version in the Linux Slackware distribution in particular.
  17.  
  18.   This document and the corresponding Mail and UUCP "HOWTO" documents
  19.   collectively supersede the UUCP-NEWS-MAIL-FAQ that has previously been
  20.   posted to comp.os.linux.announce.
  21.  
  22.  
  23.   1.1.  New versions of this document
  24.  
  25.   New versions of this document will be periodically posted to
  26.   comp.os.linux.announce, comp.answers, and news.answers.  They will
  27.   also be added to the various anonymous ftp sites who archive such
  28.   information including sunsite.unc.edu:/pub/Linux/docs/HOWTO.
  29.  
  30.  
  31.   In addition, you should be generally able to find this document on the
  32.   Linux WorldWideWeb home page at http://sunsite.unc.edu/mdw/linux.html.
  33.  
  34.  
  35.   1.2.  Feedback
  36.  
  37.   I am interested in any feedback, positive or negative, regarding the
  38.   content of this document via e-mail.  Definitely contact me if you
  39.   find errors or obvious omissions.
  40.  
  41.   I read, but do not necessarily respond to, all e-mail I receive.
  42.   Requests for enhancements will be considered and acted upon based on
  43.   that day's combination of available time, merit of the request, and
  44.   daily blood pressure :-)
  45.  
  46.   Flames will quietly go to /dev/null so don't bother.
  47.  
  48.   In particular, the Linux filesystem standard for pathnames is an
  49.   evolving thing.  What's in this document is there for illustration
  50.   only based on the current standard at the time that part of the
  51.   document was written and in the paths used in the distributions or
  52.   'kits' I've personally seen.  Please consult your particular Linux
  53.   distribution(s) for the paths they use.
  54.  
  55.   Feedback concerning the actual format of the document should go to the
  56.   HOWTO coordinator - Greg Hankins (gregh@sunsite.unc.edu).
  57.  
  58.  
  59.   1.3.  Copyright Information
  60.  
  61.   The News-HOWTO is copyrighted (c)1994 Vince Skahan.
  62.  
  63.   A verbatim copy may be reproduced or distributed in any medium
  64.   physical or electronic without permission of the author.  Translations
  65.   are similarly permitted without express permission if it includes a
  66.   notice on who translated it.
  67.   Short quotes may be used without prior consent by the author.
  68.   Derivative work and partial distributions of the News-HOWTO must be
  69.   accompanied with either a verbatim copy of this file or a pointer to
  70.   the verbatim copy.
  71.  
  72.   Commercial redistribution is allowed and encouraged; however, the
  73.   author would like to be notified of any such distributions.
  74.  
  75.   In short, we wish to promote dissemination of this information through
  76.   as many channels as possible. However, we do wish to retain copyright
  77.   on the HOWTO documents, and would like to be notified of any plans to
  78.   redistribute the HOWTOs.
  79.  
  80.   We further want that ALL information provided in the HOWTOS is
  81.   disseminated.  If you have questions, please contact Greg Hankins, the
  82.   Linux HOWTO coordinator, at gregh@sunsite.unc.edu.
  83.  
  84.  
  85.   1.4.  Standard Disclaimer
  86.  
  87.   Of course, I disavow any potential liability for the contents of this
  88.   document.  Use of the concepts, examples, and/or other content of this
  89.   document is entirely at your own risk.
  90.  
  91.  
  92.   1.5.  Other sources of information
  93.  
  94.  
  95.   1.5.1.  USENET
  96.  
  97.  
  98.      news.admin.misc         General topics of network news administration.
  99.      news.admin.policy       Policy issues of USENET.
  100.      news.admin.technical    Maintaining network news. (Moderated)
  101.      news.software.b         Discussion about B-news-compatible software.
  102.      news.software.nn        Discussion about the "nn" news reader package.
  103.      news.software.nntp      The Network News Transfer Protocol.
  104.      news.software.readers   Software used to read network news.
  105.      news.sysadmin           Comments directed to system administrators.
  106.      news.announce.newusers  Explanatory postings for new users. (Moderated)
  107.      news.newusers.questions Q & A for users new to the Usenet.
  108.  
  109.  
  110.  
  111.  
  112.   1.5.2.  Books
  113.  
  114.   The following is a non-inclusive set of books that will help
  115.  
  116.  
  117.   o  "Managing UUCP and USENET" published by O'Reilly+Associates is in
  118.      my opinion the best book out there for figuring out the programs
  119.      and protocols involved in being a USENET site.
  120.  
  121.   o  "Unix Communications" published by The Waite Group contains a nice
  122.      description of all the pieces (and more) and how they fit together.
  123.  
  124.   o  "Practical Unix Security" published by O'Reilly+Associates has a
  125.      nice discussion of how to secure UUCP in general.
  126.  
  127.   o  "The Internet Complete Reference" from Osborne is a fine reference
  128.      book that explains the various services available on Internet and
  129.      is a great source for information on news, mail, and various other
  130.      Internet resources.
  131.  
  132.  
  133.   o  "The Linux Networking Administrators' Guide" from Olaf Kirch of the
  134.      Linux DOC Project is available on the net and is also published by
  135.      (at least) O'Reilly and SSC.  It makes a fine one-stop shopping to
  136.      learn about everything you ever imagined you'd need to know about
  137.      Unix networking.
  138.  
  139.  
  140.   1.6.  Where NOT to look for help
  141.  
  142.   There is nothing "special" about configuring and running USENET news
  143.   under Linux (any more).  Accordingly, you almost certainly do *NOT*
  144.   want to be posting generic news-related questions to the
  145.   comp.os.linux.* newsgroups.
  146.  
  147.   Unless your posting is truly Linux-specific (ie, "please tell me what
  148.   patches are needed to run INN with the bash1.12 in SLS v1.03") you
  149.   should be asking your questions in the newsgroups mentioned above.
  150.  
  151.   Let me repeat that.
  152.  
  153.   There is virtually no reason to post anything news-related in the
  154.   comp.os.linux hierarchy any more.  There are existing newsgroups in
  155.   the news.*  hierarchy to handle *ALL* your questions.
  156.  
  157.   IF YOU POST TO COMP.OS.LINUX.* FOR NON-LINUX-SPECIFIC QUESTIONS, YOU
  158.   ARE LOOKING IN THE WRONG PLACE FOR HELP.  THE USENET NEWS EXPERTS HANG
  159.   OUT IN THE PLACES INDICATED ABOVE AND GENERALLY DO NOT RUN LINUX.
  160.  
  161.   POSTING TO THE LINUX HIERARCHY FOR NON-LINUX-SPECIFIC QUESTIONS WASTES
  162.   YOUR TIME AND EVERYONE ELSE'S AND IT FREQUENTLY DELAYS YOU FROM
  163.   GETTING THE ANSWER TO YOUR QUESTION.
  164.  
  165.   2.  Hardware Requirements
  166.  
  167.   There are no specific hardware requirements for USENET News under
  168.   Linux.  The only requirement of any type is sufficient disk space to
  169.   hold the software itself, the threads database(s), and the amount of
  170.   news you wish to keep on the system.  Figure on a minimum of 10 MB of
  171.   disk space for starters.
  172.  
  173.  
  174.   3.  Getting USENET News software
  175.  
  176.   All the software referenced in this "HOWTO" is available on the usual
  177.   Internet anonymous ftp sites.
  178.  
  179.   Looking in /networking/news on ftp.uu.net is usually a good way to
  180.   start.
  181.  
  182.   The newspak-2.4.tar.z distribution contains config files and readme
  183.   files related to building uucp, news, and mail software under Linux
  184.   from the various freely-available sources.  It can usually be found in
  185.   sunsite.unc.edu:/pub/Linux/system/Mail/news.  If you can't find it on
  186.   sunsite, please send me mail and I'll make sure you get a copy of it.
  187.  
  188.  
  189.   4.  News Transport Software
  190.  
  191.   There are two main sets of news "transport" software for *nix these
  192.   days, Cnews and INN.  The old "Bnews" has been declared officially
  193.   dead and unsupported by its authors.
  194.  
  195.   News "transport" is defined here to be the software that works behind
  196.   the scenes to post and propagate the news articles as well as making
  197.   the articles available for the newsreaders to access.
  198.  
  199.   You can set your paths to anything you like, as long as UUCP has the
  200.   absolute path to rnews in the Permissions file and as long as you have
  201.   your newsreaders configured so that they can find "inews" and "mail".
  202.  
  203.   Important - you're asking for trouble if you try to intermix Cnews and
  204.   INN.  Pick one or the other.  It's ok to add the NNTP "Reference
  205.   Release" into Cnews since they're intended to play well together.
  206.  
  207.  
  208.   4.1.  Cnews Cleanup Release
  209.  
  210.   The current de-facto standard news software is Cnews.  It has been
  211.   around for a number of years, I first saw it sometime around 1988.
  212.   The current version is called "Cnews Cleanup Release, with patch
  213.   CR.E".
  214.  
  215.   Cnews's main benefit is its maturity.  It runs on about every *nix you
  216.   can find and there are literally thousands of systems running it
  217.   worldwide.
  218.  
  219.   Its main disadvantage is that it seems to have been intended for uucp-
  220.   over-modem connections between sites and as such requires the addition
  221.   of NNTP software to handle realtime Internet feeds and reading.
  222.  
  223.   Regardless, the beginning USENET admin should probably run Cnews first
  224.   since it's so stable, well documented, and has many thousands of
  225.   experienced administrators who can answer questions.
  226.  
  227.   The 'Cleanup Release' claims that "Overview support has been fully
  228.   integrated and is faster than it used to be."  The result is that you
  229.   can do things like use Cnews NOV support rather than running external
  230.   threading packages for newsreaders such as nn, tin, and trn.
  231.  
  232.   I haven't quite figured how to implement this part yet, since I
  233.   switched to INN at home long ago.  If anybody wants to clue me in to
  234.   update this document, please drop me a line via e-mail.
  235.  
  236.   The newspak distribution on sunsite contains working config files for
  237.   the Cnews Cleanup Release under Linux as well as a couple line patch
  238.   you'll need to make to "doexplode" to get around some problems with
  239.   bash1.12.
  240.  
  241.   Basically you run the new 'quiz' script and take the defaults.  You'll
  242.   have to refer to your /usr/include tree to answer a number of the
  243.   questions, but that's rather straightforward.
  244.  
  245.  
  246.   4.1.1.  Installing Cnews
  247.  
  248.   Installing the Cleanup Release of Cnews is absolutely a "rtfm"
  249.   project.  Just grab the sources, extract them, and follow the
  250.   instructions.
  251.  
  252.   The quiz.def in newspak was generated by running "quiz" the first time
  253.   and simply looking up the answers by checking out the /usr/include
  254.   files to get the right answers.
  255.  
  256.   Steve Robbins also has determined that the recent 'cleanup release' of
  257.   Cnews has found a bug in GNU 'join' from shellutils-1.9.  There are a
  258.   few patches needed to the sources for join to deal with the problem.
  259.   Steve's put them on sunsite as I recall.
  260.  
  261.  
  262.  
  263.  
  264.  
  265.   4.1.2.  Configuring Cnews
  266.  
  267.   At the very least, you need to edit or at least take a look at the
  268.   following files that all should be in /usr/local/lib/news:
  269.  
  270.  
  271.   active             - the active file
  272.   batchparms         - batch parameters
  273.   explist            - article expiration setup
  274.   mailname           - name in headers for mailed replies
  275.   mailpaths          - path to mail moderated postings to
  276.   organization       - your "org"
  277.   sys                - control what you take and feed
  278.   whoami             - your hostname for the Path: line
  279.  
  280.  
  281.  
  282.  
  283.   4.1.3.  Maintaining a Cnews Site
  284.  
  285.   First, a significant rule of thumb is to not mess with files by hand
  286.   that have utilities that configure them. In particular don't set up
  287.   newsfeeds manually (run "addfeed" instead) and don't mess with your
  288.   active file (run "addgroup").  When in doubt, read and re-read the
  289.   docs in the source distribution.
  290.  
  291.   Everything else can be done via cron.  My crontab for "news" looks
  292.   like the following:
  293.  
  294.  
  295.           # take the compressed batches that came in from other systems
  296.           # also, post (locally) articles that originated here
  297.           20 *       * * * /usenet/sw/news/bin/input/newsrun
  298.  
  299.           # batch 'em up to go out
  300.           0 *        * * * /usenet/sw/news/bin/batch/sendbatches myfeedsite
  301.  
  302.           # expire C-news
  303.           59 0       * * * /usenet/sw/news/bin/expire/doexpire
  304.  
  305.           # monitor stuff and report if needed
  306.           10 5       * * * /usenet/sw/news/bin/newsdaily
  307.           00 5       * * * /usenet/sw/new/bin/newswatch
  308.  
  309.           # turn processing of incoming news batches off 6:30AM - 4:00 PM
  310.           30 6       * * * /usenet/sw/news/bin/input/newsrunning off
  311.           00 16      * * * /usenet/sw/news/bin/input/newsrunning on
  312.  
  313.  
  314.  
  315.  
  316.   4.2.  InterNetNews (INN)
  317.  
  318.   INN is the newcomer on the scene, but it's gaining popularity as it
  319.   matures.  Its main benefit is speed and the fact that it contains an
  320.   integrated nntp package.  Its main drawback is that it's new and that
  321.   it doesn't necessarily install and run flawlessly on the many
  322.   "standard *nixes" yet.  In addition, it operates by having a daemon
  323.   (the innd) always running plus potentially a overchan daemon to do
  324.   threading.  The tradeoff seems to be memory vs. speed.
  325.  
  326.   I've run up to a 5 MB/night newsfeed incoming over UUCP with INN on a
  327.   8 MB 386-33 (no Xwindows running normally) over a 14.4 KB modem with
  328.   no problems at all.
  329.  
  330.  
  331.   New USENET admins should probably not try INN until they have
  332.   experience with either B-news or Cnews.  While it's fast and reliable
  333.   under Linux, it's virtually undocumented for the beginning news
  334.   administrator (though in practice it's rather simple to run once you
  335.   figure it out).
  336.  
  337.   INN is very particular about its permissions.  Don't mess with them.
  338.  
  339.   INN is also very particular about having a "quality" TCP/IP to work
  340.   with.  Linux is not necessarily all the way there at this time, so it
  341.   is recommended that you grab a Linux-specific INN distribution from
  342.   one of the usual Linux archive sites.
  343.  
  344.  
  345.   4.2.1.  Installing INN
  346.  
  347.   ( from Arjan de Vet - devet@info.win.tue.nl )
  348.  
  349.   I've made a patch + config kit for INN 1.4 to get it to run on Linux.
  350.   It can be found at:
  351.  
  352.   ftp.win.tue.nl:/pub/linux/ports/inn-1.4-linux.tar.gz
  353.  
  354.   INN depends heavily on a good /bin/sh substitute. I use a beta version
  355.   of bash 1.13 that is now available for Linux on the normal archive
  356.   sites.  bash 1.12 gives some small problems with newgroups not being
  357.   handled correctly (maybe some other problems too, I don't remember).
  358.  
  359.  
  360.   4.2.2.  Configuring INN
  361.  
  362.   Basically follow Arjan's instructions and you'll be all set.  Here's
  363.   the summary of what to do:
  364.  
  365.  
  366.   o  In config.data, make sure you have "HAVE_UNIX_DOMAIN DONT"
  367.  
  368.   o  Add the hostname of the system running innd to hosts.nntp For a
  369.      uucp-only site, that's your sitename.
  370.  
  371.   o  Make sure you do not have a line for nntp in /etc/inetd.conf
  372.  
  373.   o  Make sure that you have innshellvars say "HAVE_UUSTAT DO" rather
  374.      than the "DONT" in his example config.data if you have uustat from
  375.      the Taylor UUCP package installed.  If you have this defined wrong,
  376.      it'll result in no outgoing news getting batched.
  377.  
  378.   o  If you run INN, definitely define the recommended syslogd stuff
  379.      because it is very, very helpful.
  380.  
  381.      There is a spectacular (!!!!) FAQ for INN that comes out monthly.
  382.      Look on rtfm.mit.edu:/pub/usenet-by-hierarchy/news for it.  You'll
  383.      be glad you did.
  384.  
  385.  
  386.   4.2.3.  Maintaining a INN Site
  387.  
  388.   I've found that there's essentially zero care-and-feeding of a Linux
  389.   INN site other than having a working cron.  Basically you want a
  390.   crontab that looks something like the following:
  391.  
  392.  
  393.  
  394.  
  395.  
  396.  
  397.           # daily maint, also expire the .overview database and articles
  398.           1 0 * * * /usenet/sw/inn/bin/news.daily expireover delayrm < /dev/null
  399.  
  400.           # send 'em out
  401.           5 * * * * /usenet/sw/inn/lib/send-uucp
  402.  
  403.  
  404.  
  405.   ( if you switch to bash1.13, the "< /dev/null" above is not needed )
  406.  
  407.  
  408.   4.3.  Other News Transport Agents
  409.  
  410.   The following is a non-inclusive list of other news transport software
  411.   known to work under Linux:
  412.  
  413.   o  dynafeed
  414.  
  415.   o  nntp1.5.11
  416.  
  417.   o  slurp1.05
  418.  
  419.  
  420.   5.  News Readers
  421.  
  422.   There is no "one true newsreader".  As a result, there are many well-
  423.   known newsreaders that port easily to Linux in particular.  At this
  424.   writing, "tin", "trn", and "nn" are in most of the commonly available
  425.   distributions of Linux and in newspak.
  426.  
  427.   When picking a newsreader, you basically want to find something that
  428.   is easy to use, very configurable by the user, with threading and kill
  429.   files (to select interesting articles or make the non-interesting ones
  430.   not appear at all).
  431.  
  432.   You can set your paths to anything you like as long as all the
  433.   newsreaders can find "inews" from your Cnews or INN installation and a
  434.   "mail" program to send mail replies to posts.
  435.  
  436.   This section will talk briefly about several of the most popular ones.
  437.   Before you ask, I use "nn" for lots of reasons :-)
  438.  
  439.  
  440.   5.1.  Tin
  441.  
  442.   Tin is a threaded newsreader generally intended to be easy for new
  443.   users.  It supports kill files and NOV threading.  If you're running
  444.   INN, it will read NOV .overview files by default and not write index
  445.   files.
  446.  
  447.   To compile Tin under linux, basically just edit the makefile to set
  448.   the locations of the software (especially the location of inews) and
  449.   type "make linux".  There are no patches required for tin under Linux.
  450.  
  451.   For threading, you can basically just say "tin -u" to update the index
  452.   files.
  453.  
  454.   To enable the ability to read via NNTP, compile with "NNTP_ABLE"
  455.   defined.  This will result in a file called "tin" for local and one
  456.   called "rtin" for NNTP reading.  "tin -r" will also get the same
  457.   behavior as "rtin".
  458.  
  459.   Iain Lea recommends the following crontab entry and says that you need
  460.   to do a "make daemon" to make tind.
  461.  
  462.  
  463.           # thread the database
  464.           35 * * * * /usenet/bin/tind -u
  465.  
  466.  
  467.  
  468.   I've run tin over a SLIP link as a NNTP-based newsreader.  If you're
  469.   connecting to a system that has a full newsfeed, you will grow
  470.   extremely old waiting for it to load up the "active" file.
  471.  
  472.  
  473.   5.2.  Trn/Mthreads
  474.  
  475.   trn is a threaded derivative of the "rn" newsreader.  trn3.2 and newer
  476.   has the nice ability to select either the "mthreads" (trn's threading
  477.   package) or NOV (threader from INN) threading.
  478.  
  479.   To compile it, just run Configure and take the calculated defaults.
  480.   You might need to have lib4.4.1 and bash-1.13 (there is a beta now
  481.   available on the various Linux archive sites) to successfully run
  482.   Configure.  You'll probably need both bash1.13 and libs4.4.1 to get
  483.   the new Configure to run properly.
  484.  
  485.   The newspak distribution on sunsite contains working config files for
  486.   trn under Linux.
  487.  
  488.   It's probably unwise to try to edit a trn config.sh by hand unless
  489.   you're doing something *VERY* simple like changing the paths to fit
  490.   your tastes.  If you do so, you'll need to run "Configure -S" before
  491.   you "make depend", "make", and "make install".
  492.  
  493.   Although "Configure" fails generally under Linux with bash1.12,
  494.   "Configure -S" work fine so if you take the newspak config.sh as a
  495.   starting point, you'll be very close.
  496.  
  497.   Compiling for NNTP reading is as simple as answering "yes" when
  498.   Configure asks you if you want to do so (assuming Configure runs ok on
  499.   your system).  A future release of newspak will include a config.sh
  500.   for NNTP reading as well as the existing one for local reading for
  501.   those of us who are still "bash-impaired" :-)
  502.  
  503.   I've run trn over a SLIP link as a NNTP-based newsreader.  If you're
  504.   connecting to a system that has a full newsfeed, you will grow
  505.   extremely old waiting for it to load up the "active" file and to
  506.   thread the articles.
  507.  
  508.   There are dozens of command line switches for trn to get all kinds of
  509.   behavior.  Read the "trn" man page for details.  I use a nice feature
  510.   to set all the switches easily:
  511.  
  512.  
  513.   o  make a file with all the settings in a file called  /.trnrc
  514.  
  515.   o  export TRNINIT=" /.trnrc"
  516.  
  517.   The current newspak has a copy of my .trnrc file as an example.
  518.  
  519.   trn3.2 and above has support for NOV or mthreads threading that's
  520.   user-selectable.  Accordingly, I recommend building the software to
  521.   allow both threading mechanisms (it's a question in Configure).  To
  522.   pick one at runtime, try "trn -Zo" for NOV and "trn -Zt" for mthreads.
  523.   I do it my aliasing trn to the right thing.
  524.  
  525.   To build the mthreads database, do something like the following in the
  526.   "news" crontab:
  527.  
  528.  
  529.           # thread the trn database
  530.           35 * * * * /usenet/bin/mthreads all
  531.  
  532.  
  533.  
  534.   5.3.  NN
  535.  
  536.   The newspak distribution on sunsite contains working config files for
  537.   nn6.4.18 that you can drop into place and type "make" under Linux.
  538.   They also work with the 6.5b3 beta of the coming nn6.5 update.
  539.  
  540.   When you're done compiling, you need to do the following:
  541.  
  542.   o  - run the "inst" program to install things.  (install everything)
  543.  
  544.   o  - initialize the database
  545.  
  546.   o  - fire up nnmaster
  547.  
  548.   See the nn docs for details.  Compiling, configuring, and running nn
  549.   under Linux is no different than running nn on any other *nix with the
  550.   exception that you may want to run nnmaster as a cron entry rather
  551.   than as a daemon.  If you run it as a daemon under linux, it may not
  552.   tend to wake up properly (the net effect of running it from cron is
  553.   the same anyway).
  554.  
  555.   Support of "nn" is as simple as the following crontab entries:
  556.  
  557.           # run nnmaster to collect "nn" stuff
  558.           # (not needed if you use NOV from INN in nn-6.5beta3)
  559.           25 * * * * /usenet/sw/nn/lib/nnmaster
  560.  
  561.           # expire the nn database
  562.           # (not needed if you use NOV from INN in nn-6.5beta3)
  563.           0  4       * * * /usenet/sw/nn/bin/nnadmin =EYW
  564.  
  565.           # stash a copy of the active file for "nngoback" and keep last 7
  566.           0 3 * * * /usenet/sw/nn/lib/back_act 7
  567.  
  568.  
  569.  
  570.   I've experimented a little with running nn as a NNTP-based newsreader
  571.   over a SLIP connection.  In this case, you'll want to edit the
  572.   config.h file slightly.  See the comments in the file for details.
  573.   When running as a NNTP-based reader, nn runs a local copy of nnmaster
  574.   to keep the threads database on the local system so that article
  575.   selection is very fast (although you of course wait for the arcticle
  576.   text a little if you're running SLIP over a modem).
  577.  
  578.   The new version (6.5.x) of nn has support for INN's NOV database which
  579.   makes it unnecessary for you to run nnmaster at all.  This
  580.   configuration is highly recommended, since as a result you won't have
  581.   to spend the cpu time to run nnmaster at all and you won't get its
  582.   database and the actual news articles available out of synch.
  583.  
  584.   5.4.  Other newsreaders
  585.  
  586.   The following is a non-inclusive list of newsreaders said to install
  587.   and run under Linux:
  588.  
  589.   o  tass
  590.  
  591.   o  xrn
  592.  
  593.   o  gnus
  594.  
  595.   6.  Acknowledgements
  596.  
  597.  
  598.   The following people have helped in the assembly of the information
  599.   (and experience) that helped make this document possible:
  600.  
  601.   Ed Carp, Steve Robbins, Ian Taylor, Greg Naber, Matt Welsh, Iain Lea,
  602.   Arjan de Vet
  603.  
  604.   If I forgot anybody, my apologies.
  605.  
  606.  
  607.   7.  Frequently Asked Questions about USENET (in c.o.l.* anyway)
  608.  
  609.  
  610.  
  611.   7.1.  Why can't I post to moderated groups ?
  612.  
  613.   Probably because the newsreader is trying to call /bin/mail to send
  614.   the mail and it doesn't like it.  Replace the /bin/mail in old
  615.   versions of SLS with the port of mailx-5.5.tar.z from a modern
  616.   Slackware and use Slackware's pkgtool to install the kit and you'll be
  617.   all set.
  618.  
  619.   Another possibility is that you have a moderated newsgroup set up on
  620.   your local system as not-moderated and somebody upstream is quietly
  621.   deleting the article (some system's software, not a person).  Make
  622.   sure you run a "checkgroups" every now and then when the checkgroups
  623.   article rolls by in news.admin every few weeks.
  624.  
  625.  
  626.   7.2.  Why do I have problems that appear to be permission-related ?
  627.  
  628.   Because they are :-)
  629.  
  630.   Check to see that your permissions are right and that you have a
  631.   "news" username and group in /etc/passwd and /etc/group that matches
  632.   the binary distribution you grabbed.  It seems that there is not yet a
  633.   Linux-standard for commonly available accounts.
  634.  
  635.   All the stuff in /usr/local/lib/news should be news.news except
  636.   /usr/local/lib/news/setnewsids which should be setuid root.
  637.  
  638.   You can use whatever UID and GID you want for "news".
  639.  
  640.  
  641.   7.3.  Why can I post articles locally, but they don't show up or get
  642.   fed downstream ?
  643.  
  644.   Probably because you didn't call newsrun from cron.  Maybe because you
  645.   edited your sys file and messed it up.  Maybe because you don't have a
  646.   /usr/spool/news/out.going tree or something.   Maybe because you
  647.   grabbed a distribution that has the 'Performance' or 'Cleanup'
  648.   releases of Cnews, which batch things up and need 'newsrun' running
  649.   from cron to process them to feed the other sites and to have them
  650.   visible locally.
  651.  
  652.   Do not create newsgroups or feeds by editing the active or sys files.
  653.   Use the utilities in /usr/local/lib/news/bin/maint to do it.
  654.  
  655.  
  656.   7.4.  Why doesn't my binary distribution have nntp ?
  657.  
  658.   Because it's supposed to be plug-n-play under Linux and because I
  659.   didn't want to make SLS's news stuff doubly big by having to maintain
  660.   both nntp and non-nntp versions of the newsreaders and news transport
  661.   programs.  Also because it compiles in localized information that is
  662.   not overridable at runtime via a config file.
  663.  
  664.  
  665.   7.5.  Why does doexpire (or relaynews or) say "severe space shortage"
  666.   when there's lots of room ?
  667.  
  668.   Because it can't read /etc/mtab.  Make it mode 644.  This happens when
  669.   you unmount a mounted filesystem by root with a umask that doesn't
  670.   permit world-read of files owned by root.
  671.  
  672.  
  673.   7.6.  Why does everything look normal, but posting doesn't happen ?
  674.  
  675.   Older versions of Linux had a "broken" sed that Cnews was prone to
  676.   blow up.  In particular, if you've installed over an old SLS, be sure
  677.   to check /bin and /usr/bin to be certain you have only one copy of sed
  678.   and that it's a modern one.
  679.  
  680.   Because as of the 'Performance Release' in about February 1993, you
  681.   have to have 'newsrun' run from cron periodically to process things.
  682.   That's a feature that apparently suprises some people.
  683.  
  684.  
  685.   7.7.  the various independent thread databases ?  Can I hook the new
  686.   news overview (NOV) stuff into trn/tin/nn to replace
  687.  
  688.   Yes. trn, tin, and the beta of nn support it now.
  689.  
  690.   You can hook it into the Performance and Cleanup Releases of Cnews and
  691.   various other readers as well.
  692.  
  693.   The beta copy of nn6.5 I have here has NOV support and it works just
  694.   dandy under Linux.  I run it here and have nn running without having
  695.   to run nnmaster (!).  Look on uniwa.uwa.edu.au for a copy of it.
  696.  
  697.  
  698.   7.8.  Why can't we have a binary distribution of NNTP ?
  699.  
  700.   Because significant local-only information is compiled-in and cannot
  701.   be determined auto-magically at runtime.  If you're that into things,
  702.   please grab INN rather than rolling your own with Cnews plus NNTP.
  703.  
  704.  
  705.   7.9.  storing any news articles or databases locally.  How do I set up
  706.   NNTP to allow read/post across the network while *not*
  707.  
  708.   ( mdw@sunsite.unc.edu (Matt Welsh) )
  709.  
  710.   o  1) Grab the "reference implementation" of nntp and a copy or rn
  711.      from your local archive site.  If you connect to ftp.uu.net you'd
  712.      grab:
  713.  
  714.      nntp.1.5.11.tar.Z from ftp.uu.net:/networking/news/nntp
  715.  
  716.   o  2) compile nntp as follows:
  717.  
  718.      copy common/conf.h.dist to common/conf.h.
  719.  
  720.      Edit common/conf.h to set certain options: The only ones I set
  721.      were:
  722.  
  723.      DOMAIN: undefine it (i.e. change the line to #undef DOMAIN).
  724.  
  725.      REALDOMAIN: Define this. It looks up the domain using the
  726.      libraries.
  727.      SERVER_FILE: Set this to the name of the file which will contain
  728.      the hostname of the news server (i.e. the machine you'll read and
  729.      post news through). I use "/usr/local/lib/news/server".
  730.  
  731.      PASSFILE: If your news server requires authorization (i.e.  some
  732.      kind of username/password) to post, set this to the name of the
  733.      file which contains the username and password (described below).  I
  734.      use "/usr/local/lib/news/nntppass".
  735.  
  736.      I decided to keep all of the other news stuff in
  737.      /usr/local/lib/news.  So I set all of the rest of the pathnames in
  738.      the file (i.e.  ACTIVE_FILE, NEWSGROUPS_FILE, etc.) to use
  739.      /usr/local/lib/news.  Many of these files are only used by the NNTP
  740.      server, not the client, but to be safe I changed them all to point
  741.      to the right directory. You can of course use the default
  742.      pathnames; just make sure you create the directory accordingly.
  743.  
  744.      3) Create the user "usenet" if you haven't already. The inews
  745.      program runs as this user. All you need is a userid; you don't need
  746.      a home directory or shell or anything for the user. Just plop the
  747.      following line into your /etc/passwd:
  748.  
  749.                                      usenet:*:13:1::/:
  750.  
  751.  
  752.   Make sure you set the userid ("13", above) to something unique. The
  753.   group can be anything; I use "daemon" (gid 1).
  754.  
  755.   o  4) Create the SERVER_FILE, above. For example, my news server is
  756.      "wonton.tc.cornell.edu", so I created the file
  757.      /usr/local/lib/news/server which contained one line:
  758.  
  759.                       wonton.tc.cornell.edu
  760.  
  761.  
  762.  
  763.   o  5) Create the PASSFILE. This file contains lines of the form
  764.  
  765.                      <server name> <username> <password>
  766.  
  767.  
  768.   Let's say that your news server (the one in SERVER_FILE, above) is
  769.   "shoop.vpizza.com", and to post on that machine you need to be autho-
  770.   rized as the user "news" with a password of "floof". Thus, in the
  771.   PASSFILE (I use /usr/local/lib/news/nntppass), you need the line
  772.  
  773.                   shoop.vpizza.com news floof
  774.  
  775.  
  776.  
  777.   o  6) Make this file secure! The inews program runs as the user
  778.      "usenet", so make this news directory owned by that user and the
  779.      nntppass file as well.
  780.  
  781.              chown usenet /usr/local/lib/news
  782.              chmod 755 /usr/local/lib/news
  783.              chown usenet /usr/local/lib/news/nntppass
  784.              chmod 600 /usr/local/lib/news/nntppass
  785.  
  786.  
  787.   So nobody else can read this file. No, the passwords in it are not
  788.   encrypted.
  789.  
  790.   o  7) Go back to the nntp.1.5.11 source directory; issue "make
  791.      client".  At this point you'll build the NNTP version of inews,
  792.      which is the only software used by the NNTP client.
  793.      When I built inews, there was a bug in the library which caused the
  794.      function uname() in uname.c to call itself eternally. This should
  795.      be gone now; however, if inews seems to hang and your system starts
  796.      slowing down *a lot* you should rename the function "uname()" in
  797.      uname.c to something like "my_uname()", and change the calls to it
  798.      (in inews.c) to call my_uname() instead. Mail me if you run into
  799.      this problem.
  800.  
  801.                      (VDS note - this means mail to Matt-not me :-) )
  802.  
  803.  
  804.  
  805.   o  8) Issue "make install_client". This will install the inews stuff.
  806.      Also link /usr/local/lib/news/inews to /usr/local/bin/inews
  807.  
  808.      Now you should be able to happily post (by hand). Try something
  809.      like the following:
  810.  
  811.                      $ inews -h << EOF
  812.                      Newsgroups: misc.test
  813.                      From: me@foo.bar.com
  814.                      Subject: Testing
  815.                      Reply-To: my-real-address@wherever.edu
  816.  
  817.                      This is a test.
  818.                      EOF
  819.  
  820.  
  821.   If this works, inews should post the article. You'll know because
  822.   test-responders on misc.test will reply to the address on the Reply-To
  823.   line, above. Please don't do test postings on real groups, like c.o.l.
  824.   :)
  825.